<%include file="include/head.html"%>
<div class="wrapper">
  <div id="div-home" class="main-info-box">
    <%include file="include/crumbs.html"%>
    <%include file="include/edit_nav.html"%>   
    <div class="div-info-body">
      <form id="register" action="/family/init" method='post' class="app-family">
	<input type="hidden" name="creator" value="<%$session.id%>"/>
        <input name="region_code" type="hidden" value="<%$session.region_code%>"/>
        <input name="master" type="hidden" value="<%$session.id%>"/>
	<div-form-line>
          <div class="1div-form-label">
	    <h2>创建家谱</h2>
          </div>
	</div-form-line>
	<div class="div-form-line">
          <div class="div-form-label">
	    名称：
	  </div>
          <div class="div-form-input">
	    <input required class="required" maxlength="24" type="text" name="name" value="<%$post.name%>"/>
	  </div>
          <div class="div-input-hint">
	    如：河南王氏族谱。
	  </div>
	</div>
	<div class="div-form-line">
          <div class="div-form-label">
	    简介：
	  </div>
          <div class="div-form-input">
            <textarea name="notes" maxlength="128"><%$post.notes%></textarea>
	  </div>
	</div>
	<div class="div-form-line">
          <div class="div-form-label">
	    开放：
	  </div>
          <div class="div-form-input">
	    <%if $open|@count gt 0%>
	    <%foreach from=$open key=k item=v%>		
	    <label><input type="radio" required class="required" name="open" id="<%$k%>" value="<%$k%>" 
			  <% if (!$post.open && $k eq "public") || $post.open eq $k %>checked<%/if%> /><%$v%></label><br/>
	    <%/foreach%>
	    <%/if%>
	  </div>
          <div class="div-input-hint">
	    开放有助于亲属们分享
          </div>
	</div>

	<div class="div-form-line">
          <div class="div-form-label">&nbsp;
	  </div>
          <div class="div-form-input">
	    <span class="error"><%$error%></span>
	  </div>
	</div>
	<div class="div-form-line">
          <div class="div-form-label">&nbsp;
	  </div>
          <div class="div-form-input">
            <input type="submit" value="添加"/>
	  </div>
	</div>
      </form>
    </div>
    <div class="clear">
    </div>
  </div>
</div>
<%include file="include/bottom.html"%>  

